Release 10.1A: OpenEdge Development:
Progress Dynamics Managers API Reference


getProfileData

This procedure returns profile data value for a specified profile for the current user for the current session. If the procedure is running on the client side, it first looks in the client cache for the profile data value. If the profile data value is not there, the procedure looks in the database.

If a rowid is passed in, then the rowid is used to find the record. For a client-only profile type, the rowid for the temp-table is used. Otherwise, the rowid of the database record is used. A profile type must be passed in to determine whether the rowid is from the temp-table or the database. If a rowid is passed in, it takes precedence over any other input parameters.

If the plNextRecordFlag flag is set to YES, then a FIND NEXT is done to retrieve the record after the passed-in record. If the record is cached on the client, the rowid of the temp-table is returned. Otherwise, the rowid of the database record is returned. The rowid is useful when reading through sets of profile data using the next functionality.

Location: af\app\afpromngrp.i

Parameters:

INPUT pcProfileTypeCode AS CHARACTER

The profile type code.

INPUT pcProfileCode AS CHARACTER

The profile code.

INPUT pcProfileDataKey AS CHARACTER

The profile data key.

INPUT plNextRecordFlag AS LOGICAL

The next flag, YES = get next value.

INPUT-OUTPUT prRowid AS ROWID

The rowid of the profile data.

OUTPUT pcProfileDataValue AS CHARACTER

The profile data value.

Notes: Always check for session data first, and then for permanent data.

Examples: See the getUserSourceLanguage procedure in af\app\afgenmngrp.i.


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095